@font-face {
    font-family: 'SYNE';
    src: url('fonts/SyneMono-Regular.ttf');
}

@font-face {
    font-family: 'SPACEGROTESK';
    src: url('fonts/SpaceGrotesk-Regular.ttf');
    font-weight: normal;
}
@font-face {
    font-family: 'SPACEGROTESK';
    src: url('fonts/SpaceGrotesk-Light.ttf');
    font-weight: light;
}
@font-face {
    font-family: 'SPACEGROTESK';
    src: url('fonts/SpaceGrotesk-Medium.ttf');
    font-weight: 100;
}
@font-face {
    font-family: 'SPACEGROTESK';
    src: url('fonts/SpaceGrotesk-SemiBold.ttf');
    font-weight: 300;
}
@font-face {
    font-family: 'SPACEGROTESK';
    src: url('fonts/SpaceGrotesk-Bold.ttf');
    font-weight: bold;
}

/*header*/

.header {
    position: fixed;
    display: block;
    height: 5vw;
    width: 100%;
    background: linear-gradient(#111111, transparent);
    top: 0;
    z-index: 2;
}

select {
    width: fit-content;
    padding: 3px;
    font-family: 'SPACEGROTESK';
    font-weight: 100;
    color: #c2c2c2;
    background-color: #111111;
    border-color: #929292;
}

footer {
    position: fixed;
    bottom: 3%;
    left: 3vw;
    font-family: 'SPACEGROTESK';
    font-weight: light;
    font-size: x-small;
    color: #929292;
}

.content {
    position: absolute;
    display: flex;
    width: 65%;
    height: 100%;
    left: 50%;
    transform: translateX(-50%);
    justify-content: space-between;
    align-items: center;
}

#name {
    font-family: 'SYNE';
    font-size: 1vw;
    color: #f3f3f3;
}

.links {
    margin: auto;
    opacity: 1;
    transition: 0.3s ease-in-out;
}
.links:hover {
    opacity: 0.5;
    transform: scale(90%);
}

#homepage {
    width: 1.9vw;
}
#projects {
    width: 2.2vw;
}
#about {
    width: 2vw;
}
#contact {
    width: 2.2vw;
}
#linktree {
    width: 2vw;
}

/*background*/

body {
    position: relative;
    width: 100vw;
    height: 100vh;
    margin: 0;
    background-color: #111111;
    overflow-x: hidden;
}

.page {
    position: relative;
    width: 70%;
    top: 18%;
    left: 50%;
    transform: translateX(-50%);
}

.text {
    position: relative;
    display: flex;
    margin-bottom: 10vh;
    width: 100%;
    align-items: center;
    justify-content: left;
}

#titlefilms {
    margin: 2vw;
    margin-bottom: 0;
    font-family: 'SYNE';
    font-size: calc(35px + 0.4vw);
    color: #5a7d81;
    transition: 0.5s ease-in-out;
}
#date {
    margin: 2vw;
    margin-top: 0;
    font-family: 'SPACEGROTESK';
    font-weight: 100;
    font-style: italic;
    font-size: calc(10px + 0.4vw);
    color: #5a7d81;
    opacity: 0;
    transition: 0.5s ease-in-out;
}

#textfilms {
    margin: 2vw;
    width: 40%;
    font-family: 'SPACEGROTESK';
    font-weight: light;
    font-style: italic;
    font-size: calc(10px + 0.4vw);
    color: #f3f3f3;
    opacity: 0;
    transition: 0.5s ease-in-out;
}
.text:hover {
    #titlefilms {
        color: #3c5356;
        font-size: calc(33px + 0.4vw);
    }
    #date {
        opacity: 1;
    }
    #textfilms {
        opacity: 1;
    }
}

/*project*/

.titlefilm {
    position: relative;
    margin: auto;
    width: 100%;
    font-family: 'SPACEGROTESK';
    font-weight: bold;
    font-size: calc(25px + 0.2vw);
    color: #7a6263;
    text-align: center;
    padding-bottom: 5%;
}

.button {
    position: relative;
    width: fit-content;
    left: 50%;
    transform: translateX(-50%);
    margin-bottom: 5%;
}
#buttonfilm {
    padding: 10px 20px;
    background-color: #5a7d81;
    box-sizing: border-box;
    font-family: 'SPACEGROTESK';
    font-size: calc(12px + 0.4vw);
    font-weight: 100;
    opacity: 1;
    color: #111111;
    transition: 0.3s ease-in-out;
}
#buttonfilm:hover {
    opacity: 0.7;
}

.container {
    position: relative;
    width: 80%;
    left: 50%;
    transform: translateX(-50%);
    justify-content: space-between;
}
.visuals {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    padding-bottom: 10%;
}
#vid1 {
    width: 100%;
    margin-bottom: 3%;
}
#img {
    width: 49%;
    margin-bottom: 3%;
}
#img2 {
    width: 100%;
    margin-bottom: 3%;
}
#vid2 {
    width: 40%;
    margin: auto;
}
#vid3 {
    width: 100%;
    margin-bottom: 3%;
}
#vid4 {
    width: 100%;
    margin-bottom: 3%;
}
#vid {
    width: 49%;
    margin-bottom: 3%;
}


/*responsive*/

@media only screen and (max-width: 600px) {
    .text {
        display: block;
        margin-bottom: 7vh;
        text-align: center;
        width: 90%;
        left: 50%;
        transform: translateX(-50%);
    }
    #titlefilms {
        margin: 2vw;
        font-size: calc(30px + 0.4vw);
        color: #5a7d81;
    }
    #date {
        color: #3c5356;
        font-size: calc(12px + 0.4vw);
        opacity: 1;
    }
    #textfilms {
        margin: 7vw 0;
        width: 100%;
        font-size: calc(12px + 0.4vw);
        opacity: 1;
    }
    .text:hover {
        #titlefilms {
            color: #5a7d81;
            font-size: calc(30px + 0.4vw);
        }
        #date {
            opacity: 1;
        }
        #textfilms {
            opacity: 1;
        }
    }
    .titlefilm {
        font-size: calc(18px + 0.2vw);
        padding-bottom: 7%;
    }
    .button {
        margin-bottom: 10%;
    }
    #buttonfilm {
        padding: 7px 15px;
        font-size: calc(12px + 0.4vw);
    }
}

@media only screen and (max-width: 600px) {
    .page {
        padding-bottom: 20%;
        top: 10%;
        width: 90%;
    }
    .container {
        width: 90%;
    }
    #vid2 {
        width: 70%;
    }
}


@media only screen and (max-width: 600px) {
    .header {
        height: 12vw;
        width: 100%;
        top: 0;
        z-index: 2;
    }
    .content {
        width: 90%;
    }    
    #name {
        font-size: 3vw;
        color: #f3f3f3;
    }
    .links {
        margin: auto;
        opacity: 1;
        transition: 0.3s ease-in-out;
    }
    .links:hover {
        opacity: 0.5;
        transform: scale(90%);
    }
    #homepage {
        width: 5vw;
    }
    #projects {
        width: 5vw;
    }
    #about {
        width: 5vw;
    }
    #contact {
        width: 5vw;
    }
    #linktree {
        width: 5vw;
    }
    }